package edu.hcmiu.portal.modelhook;

import com.liferay.portal.ModelListenerException;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.ModelListener;
import com.liferay.portlet.announcements.model.AnnouncementsEntry;

public class AnnouncementsEntryListener implements ModelListener<BaseModel> {

    public void onAfterCreate(BaseModel model) throws ModelListenerException {
        //Add your implementation here
        com.liferay.portlet.announcements.model.AnnouncementsEntry mdlObj 
                = (com.liferay.portlet.announcements.model.AnnouncementsEntry) model;
    }

    public void onAfterAddAssociation(Object arg0, String arg1, Object arg2) throws ModelListenerException {
        //Add your implementation here
    }

    public void onAfterRemove(BaseModel model) throws ModelListenerException {
        //Add your implementation here
    }

    public void onAfterRemoveAssociation(Object arg0, String arg1, Object arg2) throws ModelListenerException {
        //Add your implementation here
    }

    public void onAfterUpdate(BaseModel model) throws ModelListenerException {
        //Add your implementation here
    }

    public void onBeforeAddAssociation(Object arg0, String arg1, Object arg2) throws ModelListenerException {
        //Add your implementation here
    }

    public void onBeforeCreate(BaseModel model) throws ModelListenerException {
        //Add your implementation here
    }

    public void onBeforeRemove(BaseModel model) throws ModelListenerException {
        //Add your implementation here
    }

    public void onBeforeRemoveAssociation(Object arg0, String arg1, Object arg2) throws ModelListenerException {
        //Add your implementation here
    }

    public void onBeforeUpdate(BaseModel model) throws ModelListenerException {
        //Add your implementation here
    }

}